package com.suse.ecommerce.dao;

import com.suse.ecommerce.pojo.SeckillTime;
import com.suse.ecommerce.pojo.SeckillTimeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface SeckillTimeMapper {
    int countByExample(SeckillTimeExample example);

    int deleteByExample(SeckillTimeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SeckillTime record);

    int insertSelective(SeckillTime record);

    List<SeckillTime> selectByExample(SeckillTimeExample example);

    SeckillTime selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SeckillTime record, @Param("example") SeckillTimeExample example);

    int updateByExample(@Param("record") SeckillTime record, @Param("example") SeckillTimeExample example);

    int updateByPrimaryKeySelective(SeckillTime record);

    int updateByPrimaryKey(SeckillTime record);
    @Select("select * from tb_seckill_time where endTime>now()")
    List<SeckillTime> queryAllTime();
}